package com.zhentao.utils;

import cn.hutool.extra.qrcode.QrCodeUtil;
import cn.hutool.extra.qrcode.QrConfig;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import com.sun.org.apache.bcel.internal.generic.NEW;

import java.awt.*;
import java.io.File;

public class CodeUtil {
    //二维码生成
    public static void main(String[] args) {
        QrCodeUtil.generate("https://www.baidu.com", 500, 500, new File("D:\\qrcode.png"));
    }
}
